package hhh.app.domain.interactor;

import javax.inject.Inject;

import hhh.app.domain.repository.ProductRepository;
import rx.Observable;

/**
 * Created by hhh on 2016/12/28.
 */
public class GetCategories extends ProductCase {
    private ProductRepository repository;
    @Inject
    public GetCategories(ProductRepository repository) {
        this.repository=repository;
    }

    @Override
    protected Observable buildProductCaseSubscriber() {
        return repository.categories();
    }
}
